package com.cmwa.scbp.business.treYield.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cmwa.scbp.business.treYield.dao.TreYieldDao;
import com.cmwa.scbp.business.treYield.entity.TreYieldVo;
import com.cmwa.scbp.business.treYield.service.TreYieldService;
import com.cmwa.scbp.utils.SessionUtils;



/**
 * 产品收益表业务实现层
 * 
 * @author ex-hejm
 * @date 2019-02-21 20:02:11
 */
@Service
public class TreYieldServiceImpl implements TreYieldService {
	@Resource
	private TreYieldDao treYieldDao;

	@Override
	public void insertTreYield(TreYieldVo treYield) {
		treYieldDao.insertTreYield(treYield);
	}

	@Override
	public TreYieldVo findYieldByCode(String subPrdCode) {
		 return treYieldDao.findYieldByCode(subPrdCode);
	}

	@Override
	public int deleteYieldRate(String subPrdCode) {
		String modifyId = SessionUtils.getEmployee().getID();
		return treYieldDao.deleteYieldRate(modifyId, subPrdCode);
	}
	
}
